From: Adel Gadllah Date: Wed, 1 Jul 2015 17:02:36 +0000 (+0200) Subject: windowAttentionHandler: Allow extensions to disconnect the signal X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1316 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=feaf6108f90df29241ef4d598f7ef965c6de6350;p=gnome-shell.git windowAttentionHandler: Allow extensions to disconnect the signal That way extensions can easily disable / remove the "is ready" notification. https://bugzilla.gnome.org/show_bug.cgi?id=748846 --- diff --git a/js/ui/windowAttentionHandler.js b/js/ui/windowAttentionHandler.js index d5e23d2f2..733103336 100644 --- a/js/ui/windowAttentionHandler.js +++ b/js/ui/windowAttentionHandler.js @@ -11,7 +11,8 @@ const WindowAttentionHandler = new Lang.Class({ _init : function() { this._tracker = Shell.WindowTracker.get_default(); - global.display.connect('window-demands-attention', Lang.bind(this, this._onWindowDemandsAttention)); + this._windowDemandsAttentionId = global.display.connect('window-demands-attention', + Lang.bind(this, this._onWindowDemandsAttention)); }, _getTitleAndBanner: function(app, window) {